#ifndef __LOGLEVEL_HPP_
#define __LOGLEVEL_HPP_

#include <iostream>

namespace sqy_log
{
    class LogLevel
    {
    public:
        enum value
        {
            DEBUG,
            INFO,
            WARING,
            ERROR,
            FATAL,
            OFF
        };

        static const char* toString(LogLevel::value vl)
        {
            switch(vl)
            {
                case LogLevel::value::DEBUG: return "DEBUG";
                case LogLevel::value::INFO: return "INFO";
                case LogLevel::value::WARING: return "WARING";
                case LogLevel::value::ERROR: return "ERROR";
                case LogLevel::value::FATAL: return "FATAL";
                case LogLevel::value::OFF: return "OFF";
            }
            return "UNKNOW";
        }
    };

}
#endif